<!--

     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.

-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- **************************************************************** -->
<!-- *  PLEASE KEEP COMPLICATED EXPRESSIONS OUT OF THESE TEMPLATES, * -->
<!-- *  i.e. only iterate & print data where possible. Thanks, Jez. * -->
<!-- **************************************************************** -->

<html>
<head>
    <!-- Generated by groovydoc (2.4.7) on Thu Dec 01 22:36:11 PST 2016 -->
    <title>L10nFacade (Moqui Framework 2.0.0)</title>
    <meta name="date" content="2016-12-01">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="../../../groovy.ico" type="image/x-icon" rel="shortcut icon">
    <link href="../../../groovy.ico" type="image/x-icon" rel="icon">
    <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

<body class="center">
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
    parent.document.title="L10nFacade (Moqui Framework 2.0.0)";
}
//-->
</script>
<noscript>
    <div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
    <!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../index-all.html">Index</a></li>
        <li><a href="../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../index.html?org/moqui/context/L10nFacade" target="_top">Frames</a></li>
            <li><a href="L10nFacade.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <a name="skip-navbar_top">
        <!--   -->
    </a></div>
<!-- ========= END OF TOP NAVBAR ========= -->

<!-- ======== START OF CLASS DATA ======== -->
<div class="header">

    <div class="subTitle">Package: <strong>org.moqui.context</strong></div>

    <h2 title="[Java] Interface L10nFacade" class="title">[Java] Interface L10nFacade</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">

</ul>
<div class="description">
    <ul class="blockList">
        <li class="blockList">


    <p> For localization (l10n) functionality, like localizing messages. </p>

          </li>
    </ul>
</div>

<div class="summary">
    <ul class="blockList">
        <li class="blockList">
        <!-- =========== NESTED CLASS SUMMARY =========== -->
        

        <!-- =========== ENUM CONSTANT SUMMARY =========== -->
        
        <!-- =========== FIELD SUMMARY =========== -->
        

        <!-- =========== PROPERTY SUMMARY =========== -->
        

        <!-- =========== ELEMENT SUMMARY =========== -->
        

        

        
        <!-- ========== METHOD SUMMARY =========== -->
        <ul class="blockList">
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Methods Summary table">
                        <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Type</th>
                            <th class="colLast" scope="col">Name and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#format(java.lang.Object, java.lang.String)">format</a></strong>(java.lang.Object value, java.lang.String format)</code><br>Format a Number, Timestamp, Date, Time, or Calendar object using the given format string. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#format(java.lang.Object, java.lang.String, java.util.Locale, java.util.TimeZone)">format</a></strong>(java.lang.Object value, java.lang.String format, java.util.Locale locale, java.util.TimeZone tz)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#formatCurrency(java.lang.Object, java.lang.String, java.lang.Integer)">formatCurrency</a></strong>(java.lang.Object amount, java.lang.String uomId, java.lang.Integer fractionDigits)</code><br>Format currency amount for user to view.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#formatCurrency(java.lang.Object, java.lang.String)">formatCurrency</a></strong>(java.lang.Object amount, java.lang.String uomId)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#formatCurrency(java.lang.Object, java.lang.String, java.lang.Integer, java.util.Locale)">formatCurrency</a></strong>(java.lang.Object amount, java.lang.String uomId, java.lang.Integer fractionDigits, java.util.Locale locale)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#localize(java.lang.String)">localize</a></strong>(java.lang.String original)</code><br>Use the current locale (see ec.user.getLocale() method) to localize the message based on data in the
 moqui.basic.LocalizedMessage entity. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#localize(java.lang.String, java.util.Locale)">localize</a></strong>(java.lang.String original, java.util.Locale locale)</code><br>Localize a String using the given Locale instead of the current user's.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.sql.Date</strong></code></td>
                            <td class="colLast"><code><strong><a href="#parseDate(java.lang.String, java.lang.String)">parseDate</a></strong>(java.lang.String input, java.lang.String format)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Calendar</strong></code></td>
                            <td class="colLast"><code><strong><a href="#parseDateTime(java.lang.String, java.lang.String)">parseDateTime</a></strong>(java.lang.String input, java.lang.String format)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.math.BigDecimal</strong></code></td>
                            <td class="colLast"><code><strong><a href="#parseNumber(java.lang.String, java.lang.String)">parseNumber</a></strong>(java.lang.String input, java.lang.String format)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.sql.Time</strong></code></td>
                            <td class="colLast"><code><strong><a href="#parseTime(java.lang.String, java.lang.String)">parseTime</a></strong>(java.lang.String input, java.lang.String format)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.sql.Timestamp</strong></code></td>
                            <td class="colLast"><code><strong><a href="#parseTimestamp(java.lang.String, java.lang.String)">parseTimestamp</a></strong>(java.lang.String input, java.lang.String format)</code><br></td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
            
        </ul>
        
    </li>
    </ul>
</div>

<div class="details">
    <ul class="blockList">
        <li class="blockList">
           

            

            

            

            


            
            <!-- =========== METHOD DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="method_detail">
                    <!--   -->
                </a>
                    <h3>Method Detail</h3>
                    
                        <a name="format(java.lang.Object, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>format</strong>(java.lang.Object value, java.lang.String format)</h4>
                                <p> Format a Number, Timestamp, Date, Time, or Calendar object using the given format string. If no format string
 is specified the default for the user's locale and time zone will be used.
     <DL><DT><B>Returns:</B></DT><DD>The value as a String formatted according to the format string.</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>value</code> -  The value to format. Must be a Number, Timestamp, Date, Time, or Calendar object.</DD><DD><code>format</code> -  The format string used to specify how to format the value.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="format(java.lang.Object, java.lang.String, java.util.Locale, java.util.TimeZone)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>format</strong>(java.lang.Object value, java.lang.String format, java.util.Locale locale, java.util.TimeZone tz)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="formatCurrency(java.lang.Object, java.lang.String, java.lang.Integer)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>formatCurrency</strong>(java.lang.Object amount, java.lang.String uomId, java.lang.Integer fractionDigits)</h4>
                                <p> Format currency amount for user to view.
     <DL><DT><B>Returns:</B></DT><DD>The formatted currency amount.</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>amount</code> -  An object representing the amount, should be a subclass of Number.</DD><DD><code>uomId</code> -  The uomId (ISO currency code), required.</DD><DD><code>fractionDigits</code> -  Number of digits after the decimal point to display. If null defaults to number defined
                       by java.util.Currency.defaultFractionDigits() for the specified currency in uomId.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="formatCurrency(java.lang.Object, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>formatCurrency</strong>(java.lang.Object amount, java.lang.String uomId)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="formatCurrency(java.lang.Object, java.lang.String, java.lang.Integer, java.util.Locale)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>formatCurrency</strong>(java.lang.Object amount, java.lang.String uomId, java.lang.Integer fractionDigits, java.util.Locale locale)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="localize(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>localize</strong>(java.lang.String original)</h4>
                                <p> Use the current locale (see ec.user.getLocale() method) to localize the message based on data in the
 moqui.basic.LocalizedMessage entity. The localized message may have variables inserted using the ${} syntax that
 when this is called through ec.resource.expand().

 The approach here is that original messages are actual messages in the primary language of the application. This
 reduces issues with duplicated messages compared to the approach of explicit/artificial property keys. Longer
 messages (over 255 characters) should use an artificial message key with the actual value always coming
 from the database.
     </p>
                            </li>
                        </ul>
                    
                        <a name="localize(java.lang.String, java.util.Locale)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>localize</strong>(java.lang.String original, java.util.Locale locale)</h4>
                                <p> Localize a String using the given Locale instead of the current user's. </p>
                            </li>
                        </ul>
                    
                        <a name="parseDate(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.sql.Date <strong>parseDate</strong>(java.lang.String input, java.lang.String format)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="parseDateTime(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.util.Calendar <strong>parseDateTime</strong>(java.lang.String input, java.lang.String format)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="parseNumber(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.math.BigDecimal <strong>parseNumber</strong>(java.lang.String input, java.lang.String format)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="parseTime(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.sql.Time <strong>parseTime</strong>(java.lang.String input, java.lang.String format)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="parseTimestamp(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.sql.Timestamp <strong>parseTimestamp</strong>(java.lang.String input, java.lang.String format)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            
        </li>
    </ul>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
    <!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../index-all.html">Index</a></li>
        <li><a href="../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../index.html?org/moqui/context/L10nFacade" target="_top">Frames</a></li>
            <li><a href="L10nFacade.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <p>Groovy Documentation</p>
    <a name="skip-navbar_bottom">
        <!--   -->
    </a>
    </div>
</div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
